package com.fan.analysis.module.analysis.group.domain.bo;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * 结点和边
 *
 * @author fan
 * @date 2021/09/24 18:57
 **/
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class NodesAndLinksBo implements Serializable {
    /**
     * echarts的类型
     */
    private String type = "graph";
    /**
     * 分组集合
     */
    private List<HashMap<String, String>> categories = new ArrayList<>();
    /**
     * 边的集合
     */
    private List<LinkBo> links = new ArrayList<>();
    /**
     * 结点的结合
     */
    private List<NodeBo> nodes = new ArrayList<>();

}
